package com.zrf.base.knowledge.proxy.staticProxy;

import com.zrf.base.knowledge.proxy.Interface;
import com.zrf.base.knowledge.proxy.InterfaceImpl;

/**
 * 静态代理
 * @author zhouruifeng
 *         create at 2017/3/5.
 */
public class StaticProxy implements Interface {
    @Override
    public void doSomeThing() {
        System.out.println("调用接口前");

        Interface i = new InterfaceImpl();
        i.doSomeThing();

        System.out.println("调用接口后");
    }
}
